package com.wnhz.work.yz.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.wnhz.work.yz.R;
import com.wnhz.work.yz.activity.BathroomDetailActivity;

/**
 * A simple {@link Fragment} subclass.
 * ---整体卫浴详情
 */
public class Entirety2Fragment extends Fragment implements View.OnClickListener {
    private View view;
    private TextView tv_title;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_entirety2, container, false);
        initView();
        return view;
    }

    private void initView() {
//        view.findViewById(R.id.iv_back).setOnClickListener(this);
//        view.findViewById(R.id.iv_right_jump).setOnClickListener(this);
        view.findViewById(R.id.iv_img).setOnClickListener(this);
//
//        tv_title = (TextView) view.findViewById(R.id.tv_title);
    }

    @Override
    public void onClick(View v) {
        Intent intent;
        switch (v.getId()) {
//            case R.id.iv_back:
//                getActivity().finish();
//                break;
//
//            case R.id.iv_right_jump:
//                intent = new Intent(getActivity(), BathroomGridActivity.class);
//                startActivity(intent);
//                break;
//
            //预约信息
            case R.id.iv_img:
                intent = new Intent(getActivity(), BathroomDetailActivity.class);
                startActivity(intent);
                break;

            default:
                break;
        }
    }
}
